const { defineConfig } = require("@vue/cli-service");


let proxyObj = {};
proxyObj["/"] = {
  ws: false,
  target: "http://localhost:8082",
  // 发送请求头中host会设置成target
  changeOrigin: true,
  // 不重写请求路径
  pathReWrite: {
    "^/": "/",
  },
};

module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave:false ,//关闭eslint检查
  devServer: {
    host: "localhost",
    port: 8081,
    proxy: proxyObj,
  },
});
